package cn.pn.project.service;

import cn.pn.project.pojo.base.City;

import java.util.List;

public interface CityPositioningService {
    /**
     * 通过城市名称查询城市信息
     * @return 全部城市集合
     */
    City findCityBycityName(String cityName) throws Exception;


    /**
     * 查询所有
     * @return
     * @throws Exception
     */
    List<City> listCity() throws  Exception;
    /**
     * 查询所有
     * @return
     * @throws Exception
     */
    List<City> findAll() throws  Exception;


    /**
     * 查询销售量前10的城市
     * @return
     * @throws Exception
     */
    List<City> listCityTopTen() throws  Exception;
}
